<?php
	$isCreate = $this->formGetContext() == 'create';
	$pageUrl = isset($pageUrl) ? $pageUrl : null;
?>
<div class="form-buttons loading-indicator-container">

	<!-- Save -->
	<a
		href="javascript:;"
		class="btn btn-primary oc-icon-floppy-o save"
		data-request="onSave"
		data-load-indicator="<?= e(trans('backend::lang.form.saving')) ?>"
		data-request-before-update="$el.trigger('unchange.oc.changeMonitor')"
		<?php if (!$isCreate): ?>data-request-data="redirect:0"<?php endif ?>
		data-hotkey="ctrl+s, cmd+s">
			<?= e(trans('backend::lang.form.save')) ?>
	</a>
	
	<!-- Save and Close -->
	<a
		href="javascript:;"
		class="btn btn-primary oc-icon-check save"
		data-request-before-update="$el.trigger('unchange.oc.changeMonitor')"
		data-request="onSave"
		data-load-indicator="<?= e(trans('backend::lang.form.saving')) ?>"
		data-hotkey="ctrl+shift+s, cmd+shift+s">
			<?= e(trans('backend::lang.form.save_and_close')) ?>
	</a>

</div>
